home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / CIncludes / Scrap.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-12  |  2.2 KB  |  106 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        Scrap.h
  3.  
  4.      Contains:    Scrap Manager Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.0.1
  8.  
  9.      Copyright:    © 1985-1997 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18. #ifndef __SCRAP__
  19. #define __SCRAP__
  20.  
  21. #ifndef __TYPES__
  22. #include <Types.h>
  23. #endif
  24.  
  25.  
  26.  
  27. #if PRAGMA_ONCE
  28. #pragma once
  29. #endif
  30.  
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34.  
  35. #if PRAGMA_IMPORT
  36. #pragma import on
  37. #endif
  38.  
  39. #if PRAGMA_STRUCT_ALIGN
  40.     #pragma options align=mac68k
  41. #elif PRAGMA_STRUCT_PACKPUSH
  42.     #pragma pack(push, 2)
  43. #elif PRAGMA_STRUCT_PACK
  44.     #pragma pack(2)
  45. #endif
  46.  
  47. /*
  48.   _________________________________________________________________________________________________________
  49.    • CLASSIC SCRAP MANAGER API
  50.   _________________________________________________________________________________________________________
  51. */
  52. struct ScrapStuff {
  53.     SInt32                             scrapSize;
  54.     Handle                             scrapHandle;
  55.     SInt16                             scrapCount;
  56.     SInt16                             scrapState;
  57.     StringPtr                         scrapName;
  58. };
  59. typedef struct ScrapStuff ScrapStuff;
  60.  
  61. typedef ScrapStuff *                    PScrapStuff;
  62. typedef ScrapStuff *                    ScrapStuffPtr;
  63. EXTERN_API( ScrapStuffPtr )
  64. InfoScrap                        (void)                                                        ONEWORDINLINE(0xA9F9);
  65.  
  66. EXTERN_API( SInt32 )
  67. UnloadScrap                        (void)                                                        ONEWORDINLINE(0xA9FA);
  68.  
  69. EXTERN_API( SInt32 )
  70. LoadScrap                        (void)                                                        ONEWORDINLINE(0xA9FB);
  71.  
  72. EXTERN_API( SInt32 )
  73. GetScrap                        (Handle                 hDest,
  74.                                  ResType                 theType,
  75.                                  SInt32 *                offset)                                ONEWORDINLINE(0xA9FD);
  76.  
  77. EXTERN_API( SInt32 )
  78. ZeroScrap                        (void)                                                        ONEWORDINLINE(0xA9FC);
  79.  
  80. EXTERN_API( SInt32 )
  81. PutScrap                        (SInt32                 length,
  82.                                  ResType                 theType,
  83.                                  const void *            source)                                ONEWORDINLINE(0xA9FE);
  84.  
  85.  
  86. #if PRAGMA_STRUCT_ALIGN
  87.     #pragma options align=reset
  88. #elif PRAGMA_STRUCT_PACKPUSH
  89.     #pragma pack(pop)
  90. #elif PRAGMA_STRUCT_PACK
  91.     #pragma pack()
  92. #endif
  93.  
  94. #ifdef PRAGMA_IMPORT_OFF
  95. #pragma import off
  96. #elif PRAGMA_IMPORT
  97. #pragma import reset
  98. #endif
  99.  
  100. #ifdef __cplusplus
  101. }
  102. #endif
  103.  
  104. #endif /* __SCRAP__ */
  105.  
  106.